#ifndef __ESP8266_H__
#define __ESP8266_H__

#include <stm32f4xx.h>


#define EN_DEBUG_ESP8266	0  // 是否将串口3的数据在串口1显示
//WIFI热点宏定义
#define WIFI_SSID 			"str"
#define WIFI_PASSWORD		"88888888"


extern void 	esp8266_init(void);
extern int32_t  esp8266_self_test(void);
//查询 ESP8266 设备的 IP 地址
extern int32_t  esp8266_self_addr(char *buf);
extern int32_t 	esp8266_exit_transparent_transmission (void);
extern int32_t 	esp8266_entry_transparent_transmission(void);
extern int32_t 	esp8266_connect_ap(char* ssid,char* pswd);
extern int32_t 	esp8266_connect_server(char* mode,char* ip,uint16_t port);
extern int32_t 	esp8266_disconnect_server(void);
extern void 	esp8266_send_bytes(uint8_t *buf,uint32_t len);
extern void 	esp8266_send_str(char *buf);
extern void 	esp8266_send_at(char *str);
extern int32_t  esp8266_enable_multiple_id(uint32_t b);
extern int32_t 	esp8266_create_server(uint16_t port);
extern int32_t 	esp8266_close_server(uint16_t port);
extern int32_t 	esp8266_enable_echo(uint32_t b);
extern int32_t 	esp8266_reset(void);

#endif




